<?php $this->_extends('_layouts/main_layout'); ?>

<?php $this->_block('title'); ?>
Sign-up to Play and Win - LaLaLoot
<?php $this->_endblock(); ?>

<?php $this->_block('keywords');?>
<meta name="keywords" content="<?php echo $site['keywords']; ?>" />
<?php $this->_endblock();?>

<?php $this->_block('description');?>
<meta name="description" content="LaLaLoot: join our community of casual gamers." />
<?php $this->_endblock();?>

<?php $this->_block('content'); ?>
<div class="mt">
	<?php $this->_element('social'); ?>
</div>
<div class="mm help">
	<div class="topad">
	</div>
	<div class="clear" style="height: 10px"></div>
	<div class="left white" style="width: 600px;">
		<div style="float:left">
			<div class="title2" style="font-size: 22px">Sign Up Here!</div>
			<form action="<?php echo url('user/registering'); ?>" method="post">
				<ul class="errors">
					<?php 
						if(isset($errors)){
							foreach ($errors as $error){
								echo "<li>$error</li>";
							}
						}
					?>
				</ul>
				<div class="left" style="width: 320px;">
					<div class="tr">
						<div class="lable_2 left">* Gender</div>
						<div class="m1 left">
						
								<input type="radio" name="gender" value="M" <?php echo isset($accountinfo['gender']) 
									&& $accountinfo['gender'] == 'M' ? 'checked="checked"' : '' ?>/>Male
									
								<input type="radio" name="gender" value="F" <?php echo isset($accountinfo['gender']) 
									&& $accountinfo['gender'] == 'F' ? 'checked="checked"' : '' ?>/>Female
									
						</div>
						<div class="clear"></div>
					</div>
					<div class="tr">
						<div class="lable_2 left">* First Name</div>
						<div class="m1 left">
							<input class="inputtxt_2" name="firstname" id="firstname" value="<?php echo isset($user['firstname']) ? $user['firstname'] : ''; ?>"/>
						</div>
						<div class="clear"></div>
					</div>
					<div class="tr">
						<div class="lable_2 left">* Last Name</div>
						<div class="m1 left">
							<input class="inputtxt_2" name="lastname" id="lastname" value="<?php echo isset($user['lastname']) ? $user['lastname'] : ''; ?>"/>
						</div>
						<div class="clear"></div>
					</div>
					<div class="tr">
						<div class="lable_2 left">* Birthday</div>
						<div class="m1 left" style="width: 220px;">
							<span class="month">
								<select id="month" class="" name="birthMonth">
									<option value=""  label="Month">Month</option>
									<option value="01" label="January" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '01')? 'selected="selected"' : '';?>>January</option>
									<option value="02" label="February" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '02')? 'selected="selected"' : '';?>>February</option>
									<option value="03" label="March" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '03')? 'selected="selected"' : '';?>>March</option>
									<option value="04" label="April" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '04')? 'selected="selected"' : '';?>>April</option>
									<option value="05" label="May" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '05')? 'selected="selected"' : '';?>>May</option>
									<option value="06" label="June" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '06')? 'selected="selected"' : '';?>>June</option>
									<option value="07" label="July" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '07')? 'selected="selected"' : '';?>>July</option>
									<option value="08" label="August" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '08')? 'selected="selected"' : '';?>>August</option>
									<option value="09" label="September" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '09')? 'selected="selected"' : '';?>>September</option>
									<option value="10" label="October" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '10')? 'selected="selected"' : '';?>>October</option>
									<option value="11" label="November" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '11')? 'selected="selected"' : '';?>>November</option>
									<option value="12" label="December" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '12')? 'selected="selected"' : '';?>>December</option>
								</select>
							</span>
							<span class="day">
								<select id="day" class="" name="birthDay">
									<option value="" label="Day">Day</option>
									<?php 
										$days = array(
												'01', '02', '03', '04', '05', '06', '07', '08', '09'
												,'10', '11', '12', '13', '14', '15', '16', '17', '18', '19'
												,'20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31'
										);
										foreach ($days as $day)
										{
											if(isset($accountinfo['birthDay']) && $accountinfo['birthDay'] == $day)
											{
									?>
												<option value="<?php echo $day;?>" selected="selected"><?php echo $day;?></option>
									<?php 
											}
											else
											{
									?>
												<option value="<?php echo $day;?>"><?php echo $day;?></option>
									<?php 
											}
										}
									?>
								</select>
							</span>
							<span class="year">
								<select id="year" class="" name="birthYear">
									<option value="" selected="selected" label="Year">Year</option>
									<?php 
										$currentYear = (int) date('Y');
										$maxYear = $currentYear-18;
										$minYear = $currentYear-100;
										for ($i = $maxYear; $i >= $minYear; $i--) :
									?>
										<option value="<?php echo $i; ?>" <?php echo (isset($accountinfo['birthYear']) && intval($accountinfo['birthYear']) == $i) ? 'selected="selected"' : '';?>><?php echo $i;?></option>
									<?php endfor;?>
								</select>
							</span>
						</div>
						
						<div class="clear"></div>
					</div>
					<div class="tr">
						<div class="lable_2 left">* Email</div>
						<div class="m1 left">
							<input class="inputtxt_2" name="email" id="email"
								value="<?php echo isset($user['email']) ? $user['email'] : ''; ?>" />
						</div>
						<div class="clear"></div>
					</div>
					<div class="tr">
						<div class="lable_2 left">* Password</div>
						<div class="m1 left">
							<input class="inputtxt_2" type="password" name="password" id="password" />
						</div>
						<div class="clear"></div>
					</div>
					<div class="tr">
						<div class="lable_2 left">* Verify Password</div>
						<div class="m1 left">
							<input class="inputtxt_2" type="password" name="repassword" id="repassword" />
						</div>
						<div class="clear"></div>
					</div>
					<div class="row">
						<div class="lable_2 left"></div>
						<input type="checkbox" name="terms" id="terms" />
						<label for="terms">By checking this box I agree that I am a US resident over the age of 18, agree to the <a href="<?php echo url('privacypolicy');?>" target="_blank">Privacy Policy</a> and the <a href="<?php echo url('terms');?>" target="_blank">Terms and Conditions</a>, and agree to receive daily offers from LaLaLoot.com and Dazzle-Deals.com.</label>
						<div class="clear"></div>
					</div>
				
				
				
				
<!--					<div class="row">
						<div class="lable left"></div>
						<input type="checkbox" name="optin_edu" id="optin_edu" value="1" <?php echo isset($accountinfo['optin_edu']) && $accountinfo['optin_edu']=='1' ? 'checked="checked"' : '';?> />
						<label for="optin_edu">Looking for a way to save? Sign up to receive Eversave Coupons & Savings emails with FREE samples, grocery coupons, budget recipes & more!</label> 
						<div class="clear"></div>
					</div>
-->
<!--					<div class="row">
						<div class="lable left"></div>
						<input type="checkbox" name="optin_sj" id="optin_sj" value="1" <?php echo isset($accountinfo['optin_sj']) && $accountinfo['optin_sj']=='1' ? 'checked="checked"' : '';?> />
						<label for="optin_sj">Get Paid to Review products online for cash and rewards with ShoppingJobs.com, It’s free to Join!</label> 
						<div class="clear"></div>
					</div>
					<div class="row">
						<div class="lable left"></div>
						<input type="checkbox" name="optin_inpays" id="optin_inpays" value="1" <?php echo isset($accountinfo['optin_inpays']) && $accountinfo['optin_inpays']=='1' ? 'checked="checked"' : '';?> />
						<label for="optin_inpays">Make cash with InboxPays. Get paid to evaluate products and services as well as participating in online surveys, clipping coupons, reading emails and playing cash games. Sign up for FREE today and get a $5.00 Bonus!</label> 
						<div class="clear"></div>
					</div>
-->



					<div class="tr">
						<div class="lable_2 left"></div>
						<div class="m1 left">* Items are required</div>
						<div class="info left"></div>
						<div class="clear"></div>
					</div>
					<div class="tr">
						<div class="lable_2 left"></div>
						<div style="text-align: center">
							<input type="hidden" name="viewname" value="signup" />
							<input type="image"
								src="<?php echo $img_url;?>createaccountbtn.png" alt=""
										name="submit" width="150" height="51" />
						</div>
						<div class="info left"></div>
						<div class="clear"></div>
					</div>
				</div>
			</form>
			</div>
			<div style="float:right">
			<div class="title2" style="font-size: 22px">Already have an account?</div>
				<form action="<?php echo url('user/logging');?>" method="post">
					<ul class="errors">
						<?php 
							if(isset($errors)){
								foreach ($errors as $error){
									echo "<li>$error</li>";
								}
							}
						?>
					</ul>
					<div class="tr">
						<div class="lable_2 left">* Email</div>
						<div class="m1 left">
							<input class="inputtxt_2" name="email" id="email"
								value="<?php echo isset($user['email']) ? $user['email'] : ''; ?>" />
						</div>
						<div class="clear"></div>
					</div>
					<div class="clear"></div>
					<div class="tr">
						<div class="lable_2 left">* Password</div>
						<div class="m1 left">
							<input class="inputtxt_2" name="password" type="password"/>
						</div>
						<div class="clear"></div>
					</div>
					<div class="m left">
						<input id="rememberMe" type="checkbox" value="1" checked="checked" name="rememberMe">
						<span>Remember Me?</span>
						<a href="/forgetpassword" style="color: yellow; text-decoration: underline">
						<span>Forgot Password?</span>
						</a>
					</div>
					<div class="clear" style="height: 15px"></div>
					<div style="text-align:center">
						<input type="image"
								src="<?php echo $img_url;?>login.png" alt=""
										name="submit" width="150" height="51" />
					</div>
				</form>
			</div>
	</div>
	<div class="right rightad">
	</div>
	<div class="clear" style="height: 20px;"></div>
	<div class="bottomad">
	</div>
</div>
<div class="mb"></div>
<?php $this->_endblock(); ?>